package com.CityHunter;

import android.location.Location;

import com.google.android.maps.GeoPoint;

public class RoutePoint {
public double latitude;
public double longtitude;
public String description;
public double getLatitude() {
	return latitude;
}
public void setLatitude(double latitude) {
	this.latitude = latitude;
}
public double getLongtitude() {
	return longtitude;
}
public void setLongtitude(double longtitude) {
	this.longtitude = longtitude;
}
public String getDescription() {
	return description;
}
public void setDescription(String description) {
	this.description = description;
}
public RoutePoint(double latitude, double longtitude, String description) {
	super();
	this.latitude = latitude;
	this.longtitude = longtitude;
	this.description = description;
}

public GeoPoint getPoint(){
return (new GeoPoint((int) (latitude* 1000000),(int) (longtitude * 1000000)));
}

public Location getLocation (String provider){
	Location location=new Location(provider);
	location.setLatitude(latitude);
	location.setLongitude(longtitude);
	return location;
}


}
